<?php

include('../start.php');
include(ADM_PATH . '/start_admin.php');
include(APP_PATH . 'lib/upload.class.php');

$u = new upload();
$result = $u->up('$file1');

$arr = [];
if ($result['error'] == 0) {
    $arr['success'] = true;
    $arr['file_path'] = $result['full_filename'];
}else {
    $arr['msg'] = "错误代码:" .$result['error'];
}

echo json_encode($arr);


